package ModelLayer;

import java.util.ArrayList;

public class SalesOrder {

	private int saleId;
	private String customerId;
	private String invoiceId;
	private String date;
	private int amount;
	private String deliveryStatus;
	private String deliveryDate;
	private ArrayList<SalesLine> salesLineList;
	
	public SalesOrder()
	{
		salesLineList = new ArrayList<SalesLine>();
	}
	
	public SalesOrder(int saleId)
	{
		this.saleId = saleId;
		salesLineList = new ArrayList<SalesLine>();
	}
	
	public SalesOrder(int saleId, String customerId, String invoiceId, String date, int amount, String deliveryStatus, String deliveryDate)
	{
		this.saleId = saleId;
		this.customerId = customerId;
		this.invoiceId = invoiceId;
		this.date = date;
		this.amount = amount;
		this.deliveryStatus = deliveryStatus;
		this.deliveryDate = deliveryDate;
		salesLineList = new ArrayList<SalesLine>();
	}
	
	
	public ArrayList<SalesLine> getSalesLineList() {
		return salesLineList;
	}

	public void setSalesLineList(ArrayList<SalesLine> salesLineList) {
		this.salesLineList = salesLineList;
	}
	
	/**
	 * Setters
	 */
	
	public void setSaleId(int saleId){
		this.saleId = saleId;
	}
	
	public void setCustomerId(String customerId){
		this.customerId = customerId;
	}
	
	public void setInvoiceId(String invoiceId){
		this.invoiceId = invoiceId;
	}
	
	public void setDate(String date){
		this.date = date;
	}
	
	public void setAmount(int amount){
		this.amount = amount;
	}
	
	public void setDeliveryStatus(String deliveryStatus){
		this.deliveryStatus = deliveryStatus;
	}
	
	public void setDeliveryDate(String deliveryDate){
		this.deliveryDate = deliveryDate;
	}
	
	/**
	 * getters
	 */
	public int getSaleId(){
		return saleId;
	}
	
	public String getCustomerId(){
		return customerId;
	}
	
	public String getInvoiceId(){
		return invoiceId;
	}
	
	public String getDate(){
		return date;
	}
	
	public int getAmount(){
		return amount;
	}
	
	public String getDeliveryStatus(){
		return deliveryStatus;
	}
	
	public String getDeliveryDate(){
		return deliveryDate;
	}
}